package com.zou.study.spring.common;

import java.util.Arrays;
import java.util.Date;

public class Person {

    /**
     * 姓名
     */
    private String userName;

    /**
     * 性别
     */
    private String gender;

    /**
     * 名族
     */
    private String ethnic;

    /**
     * 出生
     */
    private Date birthday;

    /**
     * 住址
     */
    private String address;

    /**
     * 公民身份号码
     */
    private String cardNumber;

    /**
     * 签发机关
     */
    private String issuingAuthority;

    /**
     * 有效期限
     */
    private String[] validPeriod;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getEthnic() {
        return ethnic;
    }

    public void setEthnic(String ethnic) {
        this.ethnic = ethnic;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    public String getIssuingAuthority() {
        return issuingAuthority;
    }

    public void setIssuingAuthority(String issuingAuthority) {
        this.issuingAuthority = issuingAuthority;
    }

    public String[] getValidPeriod() {
        return validPeriod;
    }

    public void setValidPeriod(String[] validPeriod) {
        this.validPeriod = validPeriod;
    }

    @Override
    public String toString() {
        return "Person [userName=" + userName + ", gender=" + gender + ", ethnic=" + ethnic + ", brithday=" + birthday
                + ", address=" + address + ", cardNumber=" + cardNumber + ", issuingAuthority=" + issuingAuthority
                + ", validPeriod=" + Arrays.toString(validPeriod) + "]";
    }

}
